package com.atguigu.edu2021.mock.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 评价表
 * </p>
 *
 * @author zhangchen
 * @since 2021-09-05
 */
@Data
public class ReviewInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户名称
     */
    private Long userId;

    /**
     * 课程id
     */
    private Long courseId;

    /**
     * 评价内容
     */
    private String reviewTxt;

    /**
     * 评价
     */
    private Integer reviewStars;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 是否删除
     */
    private String deleted;


    @Override
    public String toString() {
        return "ReviewInfo{" +
        "id=" + id +
        ", userId=" + userId +
        ", courseId=" + courseId +
        ", reviewTxt=" + reviewTxt +
        ", reviewStars=" + reviewStars +
        ", createTime=" + createTime +
        ", deleted=" + deleted +
        "}";
    }
}
